package com.easy.mapper;

import com.easy.bean.Production_schedule;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductionScheduleDao {
    int add(@Param("param") Production_schedule schedule);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Production_schedule schedule);
    Production_schedule one(@Param("id") Integer id);
    List<Production_schedule> all(
            @Param("production_order_id") Integer productionOrderId,
            @Param("assigned_employee_id") Integer assignedEmployeeId
    );
    int pageCount(@Param("param") Production_schedule schedule);
    List<Production_schedule> page(@Param("page") Page page, @Param("param") Production_schedule schedule);
}
